---@meta

--- LuatOS IDE Helper for module: xxtea
--- ```yaml
--- Summary: xxtea加密解密 
--- URL: https://gitee.com/openLuat/LuatOS/tree/master/luat/../components/xxtea/binding/luat_lib_xxtea.c
--- Demo: 
--- Video: 
--- Tag: LUAT_USE_XXTEA
--- ```
--- ```lua
--- 本库是对 https://github.com/xxtea/xxtea-c 的封装, 再次感谢xxtea的作者
--- local text = "Hello World!"
--- local key = "07946"
--- local encrypt_data = xxtea.encrypt(text, key)
--- log.info("testCrypto.xxteaTest","xxtea_encrypt:"..encrypt_data)
--- local decrypt_data = xxtea.decrypt(encrypt_data, key)
--- log.info("testCrypto.xxteaTest","decrypt_data:"..decrypt_data)
--- ```
xxtea = {}

--- 加密
---@param data string data 待加密的数据
---@param key string key 加密用的密钥
---@return string #1 加密后的数据, 失败返回nil
function xxtea.encrypt(data, key) end

--- 解密
---@param data string data 待解密的数据
---@param key string key 解密用的密钥
---@return string #1 解密后的数据, 失败返回nil
function xxtea.decrypt(data, key) end
